package com.lxy.ioc.component;

import com.lxy.ioc.model.UserInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class UserComponent {

    @Resource(name = "userInfo1")
    private UserInfo ui;

    public void say(){
        System.out.println("UserComponent say.... ");
        System.out.println(ui);
    }
}
